import {
	chatBaseURL,
	contentType
} from '@/config'

import {
	instance
} from "@/utils";

/**
 * 对话
 * @param {*} params
 * @returns
 */
export async function chatProcessApi(data) {
	return instance.request({
		baseURL: chatBaseURL,
		url: "/",
		method: "post",
		header: {
			"Content-Type": contentType,
			'authorization': 'Bearer luorunfeng'
		},
		custom: {
			verification: true
		},
		getTask: (task, options) => {
			options.data?.getTask(task)
		},
		data,
	});
}